You need the com.apple.developer.vfs.snapshot entitlement to manipulate snapshots. Check out https://github.com/ahl/apfs for a sample program. You have to sign with this special entitlement and (for local development) disable both SIP and AMFI.
Topic:
App & System Services
SubTopic:
Core OS
Tags: